package com.wlyuan.open.scanner.domain.order.mapping;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author lijing
 * @description
 */
@Retention(RetentionPolicy.CLASS)
@Mapping(target = "info.totalWeight", source = "indexTotalweight")
@Mapping(target = "info.totalVolume", source = "indexTotalvolume")
@Mapping(target = "info.totalValue", source = "indexGoodsvalue")
@Mapping(target = "info.totalCost", source = "totalCost")
@Mapping(target = "info.totalAmount", source = "indexTotalamount")
@Mapping(target = "info.weightAddition", source = "indexWeightaddition")
@Mapping(target = "info.volumeAddition", source = "indexVolumeaddition")
@Mapping(target = "info.valueAddition", constant = "0.00")
public @interface PriceMapping {
}
